package com.yike.user.service;

import com.yike.common.pagination.Paging;
import com.yike.user.param.MerchantPageParam;
import com.yike.user.param.MerchantParam;
import com.yike.user.vo.PlatformMerchantVo;

import java.util.List;

/**
 * 平台用户 服务类
 *
 * @author Sakura
 * @since 2024-10-29
 */
public interface PlatformMerchantService {

    /**
     * 保存
     *
     * @param merchantParam
     * @return
     * @throws Exception
     */
    boolean saveMerchant(MerchantParam merchantParam) throws Exception;

    /**
     * 修改
     *
     * @param merchantParam
     * @return
     * @throws Exception
     */
    boolean updateMerchant(MerchantParam merchantParam) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteMerchant(Long id) throws Exception;

    boolean batchDel(List<Long> ids) throws Exception;

    PlatformMerchantVo getMerchant(Long id) throws Exception;

    Paging<PlatformMerchantVo> getMerchantPageList(MerchantPageParam merchantPageParam) throws Exception;

}
